package com.haima.ziliao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haima.ziliao.mapper.PDayinCarMapper;
import com.haima.ziliao.domain.PDayinCar;
import com.haima.ziliao.service.IPDayinCarService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 打印车Service业务层处理
 * 
 * @author hima
 * @date 2024-10-21
 */
@Service
public class PDayinCarServiceImpl extends ServiceImpl<PDayinCarMapper, PDayinCar> implements IPDayinCarService
{
    @Autowired
    private PDayinCarMapper pDayinCarMapper;

    /**
     * 查询打印车
     * 
     * @param id 打印车主键
     * @return 打印车
     */
    @Override
    public PDayinCar selectPDayinCarById(Long id)
    {
        return pDayinCarMapper.selectPDayinCarById(id);
    }

    /**
     * 查询打印车列表
     * 
     * @param pDayinCar 打印车
     * @return 打印车
     */
    @Override
    public List<PDayinCar> selectPDayinCarList(PDayinCar pDayinCar)
    {
        return pDayinCarMapper.selectPDayinCarList(pDayinCar);
    }

    /**
     * 新增打印车
     * 
     * @param pDayinCar 打印车
     * @return 结果
     */
    @Override
    public int insertPDayinCar(PDayinCar pDayinCar)
    {
        return pDayinCarMapper.insertPDayinCar(pDayinCar);
    }

    /**
     * 修改打印车
     * 
     * @param pDayinCar 打印车
     * @return 结果
     */
    @Override
    public int updatePDayinCar(PDayinCar pDayinCar)
    {
        return pDayinCarMapper.updatePDayinCar(pDayinCar);
    }

    /**
     * 批量删除打印车
     * 
     * @param ids 需要删除的打印车主键
     * @return 结果
     */
    @Override
    public int deletePDayinCarByIds(Long[] ids)
    {
        return pDayinCarMapper.deletePDayinCarByIds(ids);
    }

    /**
     * 删除打印车信息
     * 
     * @param id 打印车主键
     * @return 结果
     */
    @Override
    public int deletePDayinCarById(Long id)
    {
        return pDayinCarMapper.deletePDayinCarById(id);
    }

    @Override
    public void updatePDayinCarAll(PDayinCar pc) {
        pDayinCarMapper.updatePDayinCarAll(pc);
    }
}
